package homework1;

import java.util.Random;

public class RandomNumber {
	public static void main(String[] args) {
    Random r=new Random();
	 int [] a = new int[6];
    for(int i=0;i<6;i++)
    {
    	 int num = r.nextInt(32)+1;
    	 a[i]=num;
    	 for(int j=0;j<i;j++)
    	 {
    		 if(a[i]==a[j]) 
    		 {
    			 a[i]=0;
    			 i--;
    	     }
    	 } 
    }
    for(int i=0;i<6;i++)
    {
    System.out.println(a[i]);
    }
	}
}

